package com.zhiyume.api.util;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wang on 17/10/20.
 */
public enum SplashEnum {

    AliPay("alipay","支付宝","com.eg.android.AlipayGphone", "alipay://"),
    TaoBao("taobao","淘宝","com.taobao.taobao", "taobao://"),
    QQ("mqq","QQ","com.tencent.mobileqq", "mqq://"),
    WeChat("weixin","微信","com.tencent.mm", "weixin://"),
    JD("jd","京东","com.jingdong.app.mall", "openApp.jdMobile://"),
    WeiBo("weibo","微博","com.sina.weibo", "sinaweibo://"),
    YouKu("youku","优酷","com.youku.phone", "youku://"),
    IQYIi("iqiyi","爱奇艺","com.youku.phone", "youku://"),
    VQQ("vqq","腾讯视频","com.youku.phone", "youku://"),
    BILI("bilibili","B站","com.youku.phone", "youku://"),
    OTHER("other","第三方应用","com.youku.phone", "youku://");

    private String name;
    private String pname;
    private String scheme;
    private String alias;

    SplashEnum(String alias, String name, String pname, String scheme ){
        this.alias = alias;
        this.name = name;
        this.pname = pname;
        this.scheme = scheme;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getScheme() {
        return scheme;
    }

    public void setScheme(String scheme) {
        this.scheme = scheme;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public static List<String> getAllAlias(){
        List<String> list = new ArrayList<>();
        list.add(AliPay.getAlias());
        list.add(TaoBao.getAlias());
        list.add(QQ.getAlias());
        list.add(WeChat.getAlias());
        list.add(JD.getAlias());
        list.add(WeiBo.getAlias());
        list.add(YouKu.getAlias());
        list.add(IQYIi.getAlias());
        return list;
    }


    public static List<Enum> getAll(){
        List<Enum> list = new ArrayList<>();
        list.add(AliPay);
        list.add(TaoBao);
        list.add(QQ);
        list.add(WeChat);
        list.add(JD);
        list.add(WeiBo);
        list.add(YouKu);
        list.add(IQYIi);
        return list;
    }
}